<extend name="public@base"/>
block(name='main')
    .wrap
        ul.nav.nav-tabs
            li
                a(href="{:url('slide/index')}") 幻灯片列表
            li.active
                a 编辑幻灯片
        form.form-horizontal.js-ajax-form.margin-top-20(method='post', action="{:url('slide/editPost')}")
            .form-group
                label.col-sm-2.control-label(for='input-name')
                    | 名称
                    span.form-required
                .col-md-6.col-sm-10
                    input#input-name.form-control(type='text', name='name', value='{$result.name}')
            .form-group
                label.col-sm-2.control-label(for='input-remark') {:lang('DESCRIPTION')}
                .col-md-6.col-sm-10
                    textarea#input-remark.form-control(name='remark') {$result.remark}
            .form-group
                .col-sm-offset-2.col-sm-10
                    input(type='hidden', name='id', value='{$result.id}')
                    button.btn.btn-primary.js-ajax-submit(type='submit') {:lang('SAVE')}
                    a.btn.btn-default(href="{:url('slide/index')}") {:lang('BACK')}
